import { request } from '@/utils/request';
// import type { BaseResponse } from '@/utils/request';

export function getchaincount() {
  return request<[{ count: number }]>({
    url: '/magic/web/getchaincount',
    method: 'get',
  });
}
export function getsysLogcount() {
  return request<[{ count: number }]>({
    url: '/magic/web/getsysLogcount',
    method: 'get',
  });
}
export function getTodysysLogcount() {
  return request<[{ count: number }]>({
    url: '/magic/web/getTodysysLogcount',
    method: 'get',
  });
}
export function getTodyFialsysLogcount() {
  return request<[{ count: number }]>({
    url: '/magic/web/getTodyFialsysLogcount',
    method: 'get',
  });
}
export function getZxTj() {
  return request<[{ opertime: string; count: number }]>({
    url: '/magic/web/getZxTj',
    method: 'get',
  });
}
export function getgjTj() {
  return request<[{ createtime: string; count: number }]>({
    url: '/magic/web/getgjTj',
    method: 'get',
  });
}
export function getInfo() {
  return request<API.service>({
    url: '/monitor/server/getInfo',
    method: 'get',
  });
}
